package com.jqb.spring.dao;
import javax.annotation.Resource;

import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Repository;

import com.jqb.spring.pojo.User;
//@Component
//@Controller
//@Service
@Repository
@Scope("singleton")
public class UserDao {
	@Resource
	User user;
	public void showUser(){
		System.out.println("id:"+user.getId()+" name:"+user.getName());
	}
}













